/**
 * 
 */
package co.fitstart.coach.service;

import java.util.List;

import com.demo2do.core.service.GenericService;

import co.fitstart.entity.principal.Principal;
import co.fitstart.entity.principal.PrincipalMessage;

/**
 * @author downpour
 *
 */
public interface MessageService extends GenericService<PrincipalMessage> {
    
    /**
     * 
     * @param principal
     * @return
     */
    public int countNewMessage(Principal principal);
    
    /**
     * 
     * @param principal
     * @return
     */
    public List<PrincipalMessage> listMessages(Principal principal);
    
    /**
     * 
     * @param principalMessage
     */
    public void updateMessageStatus(PrincipalMessage principalMessage);

}
